﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="city.aspx.cs" Inherits="forum_city" %>


<%@ Register src="../UserControls/CHeaderControl.ascx" tagname="CHeaderControl" tagprefix="uc1" %>
<%@ Register src="../UserControls/CFooterControl.ascx" tagname="CFooterControl" tagprefix="uc2" %>

<%@ Register src="../UserControls/blocksubscribe.ascx" tagname="blocksubscribe" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%=city%>讨论区| <%=ASSystemArr["abbreviation"] %></title>
</head>
<body>
    <form id="form1" runat="server">
 
    <uc1:CHeaderControl ID="CHeaderControl1" runat="server" />


    <div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="forum">
	<div class="dashboard" id="dashboard">
				<ul>
        <li><a href="/forum/index.aspx">所有</a><span></span></li>
     
          <li class="current"><a href="/forum/city.aspx" >
        <%if (CurrentCity != null)
          { %>
           
        <%=CurrentCity.Name%>讨论区
         
        <% }
          else
          {%>
          全部城市讨论区
        <% }%>
       </a><span></span></li>
        <li><a href="/forum/aspublic.aspx">公共讨论区</a><span></span></li></ul>
	</div>
    <div id="content" class="coupons-box clear">
		<div class="box clear">
            
            <div class="box-content">
                <div class="head">

                <%if (CurrentCity != null)
                  { %>
                    <h2><%=CurrentCity.Name%>讨论区话题</h2>
                    <% }%>
					<ul class="filter"><li><a href="/forum/new.aspx">＋发表新话题</a></li></ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="440">话题</th><th width="80" nowrap>回复/阅读</th><th width="100" nowrap>最后发表</th></tr>
					

                           <%int i = 1;
                               foreach (Maticsoft.Model.topic bbsmodel in bbslist)
                             {
                                 Maticsoft.Model.UserInfo usermodel = new Maticsoft.Model.UserInfo();
                                 Maticsoft.BLL.UserInfo userbll = new Maticsoft.BLL.UserInfo();
                                 usermodel = userbll.GetModel(Convert.ToInt32(bbsmodel.User_id));  
                              
                              %>
						<tr <%if( i%2 !=0 ){ %> class="alt" <%} %> ><td style="text-align:left;">
                        
                           <%if (bbsmodel.Head != 0)
                             { %>
                        <a class="deal-title" href="/forum/topic.aspx?id=<%= bbsmodel.id%>" style="color:Red"><%= bbsmodel.Title%></a>
                        <%}
                             else if(bbsmodel.Head==0)
                             { %>

                                <a class="deal-title" href="/forum/topic.aspx?id=<%= bbsmodel.id%>" ><%= bbsmodel.Title%></a>
                        <% }%>
                        
                        </td><td align="center" nowrap><%= bbsmodel.Reply_number %>/<%=bbsmodel.View_number %></td><td class="author" nowrap><%=usermodel.Username%><br/><%=bbsmodel.Last_time %></td></tr>
					    <%  i++;} %>
                    
                  
						<tr><td colspan="3"><%=strpage %></td></tr>
                    </table>
				</div>
            </div>
            
        </div>
    </div>
    <div id="sidebar">
	<uc3:blocksubscribe ID="blocksubscribe1" runat="server" />
       
    </div>
</div>

</div> <!-- bd end -->
</div> <!-- bdw end -->

    <uc2:CFooterControl ID="CFooterControl1" runat="server" />
 
    </form>
</body>
</html>
